﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DochazkaKlient.User.Activity.Views
{
    public partial class ActivityDetail : UserControl
    {
        public ActivityDetail()
        {
            InitializeComponent();
        }

        public ActivityDetail(object ds)
        {
            InitializeComponent();
            activityBindingSource.DataSource = ds;
        }

        private void activityBindingNavigatorSaveItem_Click(object sender, EventArgs e)
        {
            this.Validate();
            this.activityBindingSource.EndEdit();
            this.tableAdapterManager.UpdateAll(this.dochazkaDataSet);

        }

        private void ActivityDetail_Load(object sender, EventArgs e)
        {
            //activityTableAdapter.Fill(dochazkaDataSet.Activity);
            firmTableAdapter.Fill(dochazkaDataSet.Firm);
        }
    }
}
